package monster.flight.admin.action.xtgl.role;

import java.util.List;

import monster.comm.action.BaseJsonAction;
import monster.comm.log.ILog;
import monster.comm.log.LogService;
import monster.comm.util.ReturnConstant;
import monster.flight.admin.manager.service.xtgl.RoleService;
import monster.flight.admin.vo.xtgl.Role_Meun_TreeVO;
import monster.flight.comm.entity.vo.Xt_role;

/**
 * 
 * 创建信息
 * ============= 类名: monster.flight.admin.action.xtgl.role.RoleMenuAction
 * 类作用描述: * 后台系统管理角色管理角色菜单
 * 创建人：fyr 
 * 创建时间： 2013-1-18 上午11:26:10 
 * 修改信息1=============
 * 修改类型: //1.修改bug 2.业务变化修改 修改描述: 修改人： 修改时间：
 */
public class RoleMenuInitAction extends BaseJsonAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = -636681519809823339L;
	private static ILog log = LogService.getLog(RoleMenuInitAction.class);
	
	private RoleService roleService;
	private List<Role_Meun_TreeVO> role_Meun_List;	
	private Role_Meun_TreeVO role_Meun_TreeVO;
	/**
	 * 查找角色菜单
	 * @return
	 */
	public String findRoleMenu(){
		String isLogin = isLogin();
		if("1".equals(isLogin)){
			try {
    			role_Meun_List = roleService.getRole_menu_tree(role_Meun_TreeVO);
    			//list = roleService.
    			returnVO.returnCode = ReturnConstant.IS_DEAL_OK;
			} catch (Exception e) {
				returnVO.returnCode = ReturnConstant.IS_ERR;
        		log.error(e.getMessage(), e);
			}
		}else{
			returnVO.returnCode = ReturnConstant.IS_NOT_LOGIN;
		}
			return SUCCESS;
	}
	public void setRoleService(RoleService roleService) {
		this.roleService = roleService;
	}
	public List<Role_Meun_TreeVO> getRole_Meun_List() {
		return role_Meun_List;
	}
	public void setRole_Meun_List(List<Role_Meun_TreeVO> roleMeunList) {
		role_Meun_List = roleMeunList;
	}
	public Role_Meun_TreeVO getRole_Meun_TreeVO() {
		return role_Meun_TreeVO;
	}
	public void setRole_Meun_TreeVO(Role_Meun_TreeVO roleMeunTreeVO) {
		role_Meun_TreeVO = roleMeunTreeVO;
	}
	
}
